@import "variables";

#header {
  position: relative;
  width: 100%;
  color: $text-color;
  margin-bottom: 30px;
  border-top: 2px solid $black;
  transition: all 0.24s ease;
  z-index: 3;

  @media (prefers-color-scheme: dark) {
    border-top-color: darken($dark-mode-background, 3%);
  }

  #header-wrapper {
    position: relative;
    width: 100%;
    height: 70px;
    background: $white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid lighten(#DEDFE1, 1%);
    padding: 0 20px;
    z-index: 3;

    @media (prefers-color-scheme: dark) {
      background-color: $dark-mode-light-background;
      border-bottom: 0;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
  }

  #logo {
    position: absolute;
    display: block;
    top: 0;
    left: 50%;
    margin-left: -80px;
    width: 160px;
    height: 82px;
    background-color: $black;
    padding: 10px 0 12px 0;
    transition: all 0.36s;

    @media (prefers-color-scheme: dark) {
      background-color: darken($dark-mode-light-background, 3%);
    }

    &:hover {
      @media (prefers-color-scheme: dark) {
        background-color: darken($dark-mode-light-background, 6%);
      }
    }

    @media (max-width: $on-phone)  {
      width: 140px;
      height: 140px;
      margin-left: -70px;
      padding: 10px 0;
    }

    img {
      display: block;
      width: 140px;
      height: auto;
      margin: 0 auto;
      transition: all 0.24s;

      @media (max-width: $on-phone)  {
        width: 50px;
      }
    }
    #site-desc {
      display: block;
      text-align: center;
      color: white;
      font-size: 12px;
      transition: all 0.24s;

      @media (max-width: $on-phone)  {
        font-size: 12px;
      }
    }
  }
  #site-nav-switch {
    position: relative;
    border: 0;
    float: right;
    outline: none;
    background: transparent;
    font-size: 30px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.24s ease;

    @media (prefers-color-scheme: dark) {
      color: $dark-mode-text-color;
    }

    &.active {
      transform: rotate(90deg);
    }
  }
}
